package com.ruoyi.car.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 停车情况对象 car_park_record
 * 
 * @author ruoyi
 * @date 2022-12-03
 */
public class CarParkRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long parkRecordId;

    /** 车牌 */
    @Excel(name = "车牌")
    private String carNumber;

    /** 车库id */
    @Excel(name = "车库id")
    private Long garageId;

    /** 车库名 */
    @Excel(name = "车库名")
    @TableField(exist = false)
    private String garageName;
    /** 停车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date parkStartTime;

    /** 停车结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停车结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date parkEndTime;

    public void setParkRecordId(Long parkRecordId) 
    {
        this.parkRecordId = parkRecordId;
    }

    public Long getParkRecordId() 
    {
        return parkRecordId;
    }
    public void setCarNumber(String carNumber) 
    {
        this.carNumber = carNumber;
    }

    public String getCarNumber() 
    {
        return carNumber;
    }
    public void setGarageId(Long garageId) 
    {
        this.garageId = garageId;
    }

    public Long getGarageId() 
    {
        return garageId;
    }
    public void setParkStartTime(Date parkStartTime) 
    {
        this.parkStartTime = parkStartTime;
    }

    public Date getParkStartTime() 
    {
        return parkStartTime;
    }
    public void setParkEndTime(Date parkEndTime) 
    {
        this.parkEndTime = parkEndTime;
    }

    public Date getParkEndTime() 
    {
        return parkEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parkRecordId", getParkRecordId())
            .append("carNumber", getCarNumber())
            .append("garageId", getGarageId())
            .append("parkStartTime", getParkStartTime())
            .append("parkEndTime", getParkEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    public String getGarageName() {
        return garageName;
    }

    public void setGarageName(String garageName) {
        this.garageName = garageName;
    }
}
